package com.example.springfortestspace.dao;

import com.example.springfortestspace.entity.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @Auther：FKM
 * @Date：2024/5/1011:16
 */
@Mapper
@Repository
public interface TestSpaceDao {
    Customer findByCustomNameAndVersion(@Param(value = "custom") String custom, @Param(value = "version") String version);

    void insertIntoTable(Customer cus);
    void updateIntoTable(Customer cus); //更新
    void updateIntoTableStatus(Customer cus); //更新
    Integer findProjectPortCount(String port); //判断表中是否已经有相关的项目占用端口

    Customer findMaxProjectPror();

    List<Customer> findAll(Customer customer);
    List<Customer> findRunProject(Customer customer);
}
